<?php
namespace app\web\validate;

use think\Validate;


class TicketSendValidate extends Validate {

    /**
     * 字段验证规则
     *
     * @var array
     */
    protected $rule = [
        'send_num'  => 'require|number',
        'phone' => 'require|mobile',
        'ticket_id' => 'require|number',
        'store_id' => 'require|number',
    ];


    /**
     * 字段验证规则提示
     *
     * @var array
     */
    protected $message  =   [
        'send_num.require' => '发送数量必填',
        'send_num.number'     => '发送数量必须是数字',
        'phone.require'   => '手机号必填',
        'phone.number'   => '手机号必须是数字',
        'phone.between'   => '手机号只能在1-11之间',
        'ticket_id.require'  => '票券ID必填',
        'ticket_id.number'  => '票券ID必须是数字',
        'store_id.require'  => '门店ID必填',
        'store_id.number'  => '门店ID必须是数字',
    ];


    protected $scene = [
        'send'=>['send_num','phone','ticket_id','store_id'],
    ];




}